// PubSub.h: interface for the CPubSub class.
//
//////////////////////////////////////////////////////////////////////

#pragma once

#include <Windows.h>
class CPubSub
{
public:
	CPubSub();
	virtual ~CPubSub();

	HANDLE m_hCom;

	BOOL OpenCom(int ComNo,DWORD Baut,int Data,int Stop,int Parity,DWORD cbInBuf,DWORD cbOutBuf);
	int GetDataLen();
	DWORD ReadCom(BYTE *pBuff,int nCount);
	BOOL WriteCom(BYTE *pBuff, int nCount);
	BOOL CloseCom();
};

